#ifndef __CUSTOMSOCKETUDPSOCKET__
#define __CUSTOMSOCKETUDPSOCKET__

#include <WinSock2.h>

namespace CustomSocket
{
	class SocketAddress;

	class UDPSocket
	{
	public:
		int Bind(SocketAddress& socketAddressPrt, USHORT len);
		int SendTo(SocketAddress& targetAddressPrt, const void* buf, USHORT bufLen);
		int Receive(char* buf, USHORT bufLen, sockaddr* fromSockAddr, int* formSockAddrLen));
		UDPSocket(); 
		~UDPSocket();
	private:
		SOCKET mSocket;
	};
}

#endif //__CUSTOMSOCKETUDPSOCKET__